{"ast":null,"code":"import classNames from 'classnames';\nimport * as React from 'react';\nconst Element = props => {\n  const {\n    prefixCls,\n    className,\n    style,\n    size,\n    shape\n  } = props;\n  const sizeCls = classNames({\n    [`${prefixCls}-lg`]: size === 'large',\n    [`${prefixCls}-sm`]: size === 'small'\n  });\n  const shapeCls = classNames({\n    [`${prefixCls}-circle`]: shape === 'circle',\n    [`${prefixCls}-square`]: shape === 'square',\n    [`${prefixCls}-round`]: shape === 'round'\n  });\n  const sizeStyle = React.useMemo(() => typeof size === 'number' ? {\n    width: size,\n    height: size,\n    lineHeight: `${size}px`\n  } : {}, [size]);\n  return /*#__PURE__*/React.createElement(\"span\", {\n    className: classNames(prefixCls, sizeCls, shapeCls, className),\n    style: Object.assign(Object.assign({}, sizeStyle), style)\n  });\n};\nexport default Element;","map":{"version":3,"names":["classNames","React","Element","props","prefixCls","className","style","size","shape","sizeCls","shapeCls","sizeStyle","useMemo","width","height","lineHeight","createElement","Object","assign"],"sources":["/data/messenger.client/node_modules/antd/es/skeleton/Element.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nconst Element = props => {\n  const {\n    prefixCls,\n    className,\n    style,\n    size,\n    shape\n  } = props;\n  const sizeCls = classNames({\n    [`${prefixCls}-lg`]: size === 'large',\n    [`${prefixCls}-sm`]: size === 'small'\n  });\n  const shapeCls = classNames({\n    [`${prefixCls}-circle`]: shape === 'circle',\n    [`${prefixCls}-square`]: shape === 'square',\n    [`${prefixCls}-round`]: shape === 'round'\n  });\n  const sizeStyle = React.useMemo(() => typeof size === 'number' ? {\n    width: size,\n    height: size,\n    lineHeight: `${size}px`\n  } : {}, [size]);\n  return /*#__PURE__*/React.createElement(\"span\", {\n    className: classNames(prefixCls, sizeCls, shapeCls, className),\n    style: Object.assign(Object.assign({}, sizeStyle), style)\n  });\n};\nexport default Element;"],"mappings":"AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,MAAMC,OAAO,GAAGC,KAAK,IAAI;EACvB,MAAM;IACJC,SAAS;IACTC,SAAS;IACTC,KAAK;IACLC,IAAI;IACJC;EACF,CAAC,GAAGL,KAAK;EACT,MAAMM,OAAO,GAAGT,UAAU,CAAC;IACzB,CAAE,GAAEI,SAAU,KAAI,GAAGG,IAAI,KAAK,OAAO;IACrC,CAAE,GAAEH,SAAU,KAAI,GAAGG,IAAI,KAAK;EAChC,CAAC,CAAC;EACF,MAAMG,QAAQ,GAAGV,UAAU,CAAC;IAC1B,CAAE,GAAEI,SAAU,SAAQ,GAAGI,KAAK,KAAK,QAAQ;IAC3C,CAAE,GAAEJ,SAAU,SAAQ,GAAGI,KAAK,KAAK,QAAQ;IAC3C,CAAE,GAAEJ,SAAU,QAAO,GAAGI,KAAK,KAAK;EACpC,CAAC,CAAC;EACF,MAAMG,SAAS,GAAGV,KAAK,CAACW,OAAO,CAAC,MAAM,OAAOL,IAAI,KAAK,QAAQ,GAAG;IAC/DM,KAAK,EAAEN,IAAI;IACXO,MAAM,EAAEP,IAAI;IACZQ,UAAU,EAAG,GAAER,IAAK;EACtB,CAAC,GAAG,CAAC,CAAC,EAAE,CAACA,IAAI,CAAC,CAAC;EACf,OAAO,aAAaN,KAAK,CAACe,aAAa,CAAC,MAAM,EAAE;IAC9CX,SAAS,EAAEL,UAAU,CAACI,SAAS,EAAEK,OAAO,EAAEC,QAAQ,EAAEL,SAAS,CAAC;IAC9DC,KAAK,EAAEW,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEP,SAAS,CAAC,EAAEL,KAAK;EAC1D,CAAC,CAAC;AACJ,CAAC;AACD,eAAeJ,OAAO"},"metadata":{},"sourceType":"module"}